package com.bms.client.controller;

import com.bms.client.utils.MyPublisher;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zcx
 * @version 1.0
 * @description text.java
 * @date 2021/3/27 22:51
 */
@RestController
public class text {
    @Resource
    private MyPublisher MyPublisher;
    @RequestMapping(value = "send",method = RequestMethod.GET)
    public void text1(@RequestParam("s") String s) {
        MyPublisher.sendMessage(s);
        System.out.println("发送信息");
    }
}
